package com.itheima.object;

public class Test {
    public static void main(String[] args) {
        // 目标：面向对象编程快速入门。
        // 创建对象的格式：类名 对象名 = new 类名();
        Student s1 = new Student();
        s1.name = "波妞";
        s1.chinese = 100;
        s1.math = 100;
        s1.printAllScore();
        s1.printAverageScore();

        Student s2 = new Student();
        s2.name = "波仔";
        s2.chinese = 59;
        s2.math = 100;
        s2.printAllScore();
        s2.printAverageScore();
    }
}
